<template>
  <div>
    {{name}}
  </div>
</template>

<script>
export default {
  props: {
    name:{
      type: String,
      default: '123'
    }
  },
  mounted () {
    this.$emit('hello','子传父亲')
  }
}
</script>

<style>

</style>